class NotificationManager {
  static async showNotification(title, message) {
    // 浏览器通知
    chrome.notifications.create({
      type: 'basic',
      iconUrl: 'icons/icon48.png',
      title: title,
      message: message
    });

    // Windows 通知 (通过 Notifications API)
    if (window.Notification && Notification.permission === "granted") {
      new Notification(title, {
        body: message,
        icon: 'icons/icon48.png'
      });
    }
  }
}

export default NotificationManager; 